import { createI18n } from "vue-i18n"
import { en_US, th_TH, zh_CN } from "./langs"

const messages = {
	en: en_US,
	"zh-Hans": zh_CN,
	"th-TH": th_TH
}

let i18nConfig = {
	locale: uni.getLocale(), // 获取1已设置的语言
	messages
}

const i18n = createI18n(i18nConfig)
export default i18n